﻿/*********************************************************************************
 *Author:         OnClick
 *Version:        1.0
 *UnityVersion:   2018.3.11f1
 *Date:           2019-04-07
 *Description:    IFramework
 *History:        2018.11--
*********************************************************************************/
using System;

namespace IFramework
{
	public interface IResourceManager
	{
        UnityEngine.Object Load(string path, Type type, ResourceType resType);
        T Load<T>(string path, ResourceType resType)where T:UnityEngine.Object;
        UnityEngine.Object LoadAsync(string path, Type type, ResourceType resType);
        T LoadAsync<T>(string path, ResourceType resType) where T : UnityEngine.Object;
        bool UnLoad<T>(string path) where T : UnityEngine.Object;
        bool Unload(string path, Type type);
        bool Unload(string path);
        bool Unload(UnityEngine.Object asset, ResourceType resType);
        bool Unload(UnityEngine.Object asset);
    }
}
